﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Kuvankatselin.KuvaLista"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="150" Opacity="0" MouseEnter="UserControl_MouseEnter" MouseLeave="UserControl_MouseLeave">
	<UserControl.Resources>
		<Storyboard x:Key="OnMouseEnter1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UserControl">
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnMouseLeave1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="UserControl">
				<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard Storyboard="{StaticResource OnMouseEnter1}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard x:Name="OnMouseLeave1_BeginStoryboard" Storyboard="{StaticResource OnMouseLeave1}"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="620*" />
            <ColumnDefinition Width="10" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
			<RowDefinition Height="6"/>
            <RowDefinition Height="120" />
            <RowDefinition Height="24" />
        </Grid.RowDefinitions>
		<Rectangle Fill="#7F000000" Grid.RowSpan="3" Grid.ColumnSpan="3" />
		<Button x:Name="ValisteKuvatPainike" Content="Button" Height="50" Margin="273,0,293,8" Style="{DynamicResource ValitseKuvatkansiostaPainike}" VerticalAlignment="Bottom" Grid.RowSpan="2" Grid.Row="1" Grid.Column="1" Click="ValisteKuvatPainike_Click" Panel.ZIndex="10" />
        <StackPanel Grid.Column="1" Grid.Row="1" Height="120" Margin="2,0,0,0" Name="kuvaAlue" VerticalAlignment="Top" Orientation="Horizontal" AllowDrop="True" Panel.ZIndex="1" />
    </Grid>
</UserControl>